function getRadioValue(obj) {
// Set default value for run function
	var returnValue = "";

// Find radio value
	for (i=0; i<obj.length; i++) {
		if (obj[i].checked) {
			returnValue = obj[i].value;
			break;
		}
	}

	return returnValue;
}


function getRadioIndex(obj) {
// Set default value for run function
	var returnValue = 0;

// Find radio index
	for (i=0; i<obj.length; i++) {
		if (obj[i].checked) {
			returnValue = i;
			break;
		}
	}

	return returnValue;
}


function assignValueFromCheckToSelect(targetObj, sourceObj, checkedValue, notCheckedValue) {
	targetObj.length = sourceObj.length;
	for(i=0; i<sourceObj.length; i++){
		if (sourceObj[i].checked) {
			targetObj.options[i].value = checkedValue;
//			targetObj.options[i].text = checkedValue;
		} else {
			targetObj.options[i].value = notCheckedValue;
//			targetObj.options[i].text = notCheckedValue;
		}
		targetObj.options[i].selected = true;
	}
}


function assignValueFromRadioToSelect(targetObj, prefixObj, beginNum, endNum) {
	targetObj.length = endNum-beginNum+1;
	for(i=0; i<targetObj.length; i++){
		sourceObj = eval(prefixObj+(beginNum+i));
		for (j=0; j<sourceObj.length; j++) {
			if (sourceObj[j].checked) {
				targetObj.options[i].value = sourceObj[j].value;
//				targetObj.options[i].text = sourceObj[j].value;
				targetObj.options[i].selected = true;
				break;
			}
		}
	}
}
